package cn.funeralobjects.ams.model;

import cn.funeralobjects.ams.enums.AccessKeyStatus;
import cn.funeralobjects.util.annotation.ArgHasLength;
import cn.funeralobjects.util.annotation.ArgNonNull;
import cn.funeralobjects.util.annotation.AssertArg;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 访问控制key
 * @author FuneralObjects
 * Create date: 2020/5/24 11:17 AM
 */
@Data
@Accessors(chain = true)
public class AccessKey {
    /**
     * 阿里访问控制id
     */
    @ArgHasLength
    private String accessKeyId;
    /**
     * 阿里访问权限对应秘钥
     */
    @ArgHasLength
    private String accessKeySecret;
    /**
     * 该权限状态
     */
    @ArgNonNull
    private AccessKeyStatus status;

    /**
     * 所属access
     */
    @AssertArg
    private Access access;
}
